﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class User_RegAgree2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btn_Agree_Click(object sender, ImageClickEventArgs e)
    {
        string userType = Request.QueryString["UserType"].ToString();
        string regType = Request.QueryString["RegType"].ToString();

        if (regType == "1")
        {
            Response.Redirect("PurchaseCardReg/CardEnter.aspx?UserType=" + userType + "&RegType=" + regType + "");
        }
        else if (regType == "2")
        {
            Response.Redirect("CTIReg/CTIEnter.aspx?UserType=" + userType + "&RegType=" + regType + "");
        }
        else
        {
            if (userType == "0" && regType == "3")
            {
                Response.Redirect("ExperienceReg/experiencePersonal.aspx");
            }
            else
            {
                Response.Redirect("ExperienceReg/experienceCompany.aspx");
            }
        }
    }
}
